<%--
  Created by IntelliJ IDEA.
  User: DaHa
  Date: 2021/3/22
  Time: 21:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
	<title>Title</title>
	<script src="https://cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
	<link href="https://cdn.bootcss.com/pace/1.0.2/themes/pink/pace-theme-flash.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="plugins/layui/css/layui.css" media="all"/>
	<link rel="stylesheet" type="text/css" href="css/fs.css" media="all"/>
	<script type="text/javascript" src="plugins/layui/layui.js"></script>
	<script type="text/javascript" src="plugins/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="plugins/frame/js/fs.js?v=1.5.0"></script>
	<script type="text/javascript" src="plugins/frame/js/frame.js?v=1.5.0"></script>
</head>
<body>

<div class="layui-form" id="content">
	<h1>您的卡号是${sessionScope.id}</h1>
	<table id="fsDatagrid" lay-filter="fsDatagrid" class="fsDatagrid" isLoad="1" url="/book/favoriteBook"
		   isPage="1" defaultForm="query_form" height="full-135" page-size="10" >
	</table>
	<div class="fsDatagridCols">
		<p type='numbers' title='序号' />
		<p field='name' title='书名' width='150' />
		<p field="author" title="作者" width="150" sort="true"/>
		<p field="book_id" title="书的id" width="150" sort="true"/>
		<p field="borrowDate" title="收藏时间" templet="<div>{{layui.fsUtil.toDateString(d.borrowDate, 'yyyy-MM-dd HH:mm:ss')}}</div>" width="180" />
		<p fixed="right" align="center" toolbar="#barDemo" title="操作" width="220"/>
	</div>


	<script type="text/html" id="barDemo">
		<a class="layui-btn layui-btn-xs borrow" id="store" lay-event="submit" inputs="book_id:" url="/book/borrow" isConfirm="1"
           confirmMsg="是否确定借阅？" >
			借阅
		</a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="submit" inputs="id:" url="/book/delFavorite" isConfirm="1"
           confirmMsg="是否确定删除当前记录？">删除</a>
	</script>
</div>

</body>
</html>
